//
//  Room.h
//  Wi-Fi Party remade-1
//
//  Created by Vieta Ken on 2021/2/26.
//

#ifndef Room_h
#define Room_h


#endif /* Room_h */

#import <netinet/in.h>
#import <arpa/inet.h>
#import <sys/socket.h>
#import <string.h>
#import <AudioUnit/AudioUnit.h>
#import <AVFoundation/AVFoundation.h>
#import <unistd.h>
#import "Functions.h"
#import "Queue.h"
#import "inputMixer.h"
#import "config.h"

@interface Room : NSObject
{
    @public int receive_socket;
    bool speaking,alive;
    @public AudioUnit audio_unit;
    @public AudioStreamBasicDescription stream_format;
    Queue *play_buffer;
    NSMutableDictionary *recv_dict;
    dispatch_queue_t dispatch_queue;
    inputMixer *mixer;
}
-(id)init;
-(void)speak;
-(void)unspeak;
-(void)leave;

@end
